<template>
  <div class="welcome-container">
    <h1 class="welcome-title">客户养生系统欢迎您</h1>
    <img 
      class="welcome-image" 
      src="../assets/welcome.jpg" 
      alt="养生系统背景图"
    />
  </div>
</template>

<script lang="ts" setup>
</script>

<style scoped>
.welcome-container {
  position: relative;
  height: 100%;
  width: 100%;
  min-height: calc(100vh - 40px); /* 减去el-main的padding */
}

.welcome-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2.5rem;
  text-align: center;
  color: #333;
  z-index: 2;
  text-shadow: 1px 1px 3px rgba(255,255,255,0.8);
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
}

.welcome-image {
  width: 150%;
  height:100%;
  object-fit: fill;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}
</style>